package entidades;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table (name = "DETALLE_CARRO")
public class DetalleCarro implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    @Id
    @Column (name = "ID_DETALLE")
    private int idDetalle;
    
    @Column (name = "ID_CARRO")
    private int idCarro;
    
    @Column (name = "ID_PRODUCTO")
    private String idProd;
    
    @Column (name = "CANTIDAD")
    private int cantidad;

    
    //getters and setters
    public int getIdDetalle() {
        return idDetalle;
    }

    public void setIdDetalle(int idDetalle) {
        this.idDetalle = idDetalle;
    }

    public int getIdCarro() {
        return idCarro;
    }

    public void setIdCarro(int idCarro) {
        this.idCarro = idCarro;
    }

    public String getIdProd() {
        return idProd;
    }

    public void setIdProd(String idProd) {
        this.idProd = idProd;
    }

    public int getCantidad() {
        return cantidad;
    }

    public void setCantidad(int cantidad) {
        this.cantidad = cantidad;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }
    
    
    

}
